TaskCompletionSource(TResult) Methods

Task Parallel System.Threading

The TaskCompletionSource<(Of <(TResult>)>) type exposes the following members.

Methods

  NameDescription
Equals (Inherited from Object.)
Finalize (Inherited from Object.)
GetHashCode (Inherited from Object.)
GetType (Inherited from Object.)
MemberwiseClone (Inherited from Object.)
SetCanceled
Transitions the underlying Task<(Of <(TResult>)>) into the Canceled state.
SetExceptionOverloaded.
SetResult
Transitions the underlying Task<(Of <(TResult>)>) into the RanToCompletion state.
ToString (Inherited from Object.)
TrySetCanceled
Attempts to transition the underlying Task<(Of <(TResult>)>) into the Canceled state.
TrySetExceptionOverloaded.
TrySetResult
Attempts to transition the underlying Task<(Of <(TResult>)>) into the RanToCompletion state.

See Also